package com.zhxy.util.message;

public class MessagePipeIoHandlerConfig {
	
	private int timeout = 0;
	
	private int keepAliveTime = 0;

	public int getTimeout() {
		return timeout;
	}

	/**
	 * 连接的超时时间,单位秒。
	 * 如果超出此时间后仍未收到任何信息,则主动断开连接
	 * @param timeout
	 */
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public int getKeepAliveTime() {
		return keepAliveTime;
	}

	/**
	 * 心跳信息的发送时间间隔,单位秒
	 * @param keepAliveTime
	 */
	public void setKeepAliveTime(int keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}
}
